<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// +----------------------------------------------------------------------
// | Workerman设置 仅对 php think worker:server 指令有效
// +----------------------------------------------------------------------
return [
    'worker_class'  =>  'app\workerman\controller\Worker',
    
    // 'timer_get_sms_url'     =>  'http://www.fwdg.com//workerman/Timer/getSms',
    // 'timer_denial_url'     =>  'http://www.fwdg.com//workerman/Timer/denialAndBanRefund',
    // 'sjj_url'     =>  'http://www.fwdg.com/workerman/Timer/shengjiangji',
    // 'timer_get_phone_url'     =>  'http://www.fwdg.com/workerman/Timer/getPhone',
    //获取短信，超时释放定时器地址
    'timer_get_sms_url'     =>  'http://119.8.43.198:10010/workerman/Timer/getSms',
    // //未获取到短信被释放的订单退款
    'timer_denial_url'     =>  'http://119.8.43.198:10010/workerman/Timer/denialAndBanRefund',
    // //升降级
    'timer_sjj_url'     =>  'http://119.8.43.198:10010/workerman/Timer/shengjiangji',
    // //获取订单电话号码
    'timer_get_phone_url'     =>  'http://119.8.43.198:10010/workerman/Timer/getPhone',
    // 扩展自身需要的配置
    // 'protocol'       => 'websocket', // 协议 支持 tcp udp unix http websocket text
    // 'host'           => '0.0.0.0', // 监听地址
    // 'port'           => 2345, // 监听端口
    // 'socket'         => '', // 完整监听地址
    // 'context'        => [], // socket 上下文选项
    // 'worker_class'   => '', // 自定义Workerman服务类名 支持数组定义多个服务

    // // 支持workerman的所有配置参数
    // 'name'           => 'thinkphp',
    // 'count'          => 4,
    // 'daemonize'      => false,
    // 'pidFile'        => '',

    // // 支持事件回调
    // // onWorkerStart
    // 'onWorkerStart'  => function ($worker) {

    // },
    // // onWorkerReload
    // 'onWorkerReload' => function ($worker) {

    // },
    // // onConnect
    // 'onConnect'      => function ($connection) {

    // },
    // // onMessage
    // 'onMessage'      => function ($connection, $data) {
    //     $connection->send('receive success');
    // },
    // // onClose
    // 'onClose'        => function ($connection) {

    // },
    // // onError
    // 'onError'        => function ($connection, $code, $msg) {
    //     echo "error [ $code ] $msg\n";
    // },
];
